import {baseRequest} from '@/utils/request'

const request = (url, ...arg) => baseRequest(`/process/thread/config/` + url, ...arg)

export default {
	async setStatusFlag(data) {
		return await request('set_status_flag', data, 'post')
	},
	async threadStackTrace(data) {
		return await request('thread_stack_trace', data, 'post')
	},
	async getById(data) {
		return await request('get_by_id', data, 'post')
	},
	async save(data) {
		return await request('save', data, 'post')
	},
	async queryTimeUnitList(data) {
		return await request('time_unit_list', data, 'post')
	},
	async queryRejectPolicyList(data) {
		return await request('reject_policy_list', data, 'post')
	},
	async list(data) {
		return await request('list', data, 'post')
	},
}
